<template>
  <view>
    <video class="video" :src="url" controls></video>
  </view>
</template>

<script>
export default {
  data() {
    return {
      roomId: 0,
      url: "",
    };
  },
  onLoad(e) {
    this.roomId = e.roomId;
    this.getData();
  },
  methods: {
    getData() {
      let self = this;
      self.loading = true;
      self._post(
        "plus/live/room/detail",
        {
          roomId: self.roomId,
        },
        function (res) {
          self.url = res.data.detail.recordUrl;
        }
      );
    },
  },
};
</script>

<style>
.video {
  width: 750rpx;
  height: 100vh;
}
</style>
